home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet bezpieczenstwa
/
mini Pentoo LiveCD 2006.1
/
mpentoo-2006.1.iso
/
livecd.squashfs
/
usr
/
lib
/
perl5
/
5.8.7
/
Net
/
demos
/
ftp
next >
Wrap
Text File
|
2006-04-25
|
371b
|
22 lines
#!/usr/local/bin/perl
use blib;
use Net::FTP;
use Getopt::Long;
$opt_debug = undef;
$opt_firewall = undef;
GetOptions(qw(debug firewall=s));
@firewall = defined $opt_firewall ? (Firewall => $opt_firewall) : ();
foreach $host (@ARGV)
{
$ftp = Net::FTP->new($host, @firewall, Debug => $opt_debug ? 1 : 0);
$ftp->login();
print $ftp->pwd,"\n";
$ftp->quit;
}